<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="renderer" content="webkit">
<title></title>
<link rel="stylesheet" href="__PUBLIC__/css/pintuer.css">
<link rel="stylesheet" href="__PUBLIC__/css/admin.css">
<script src="__PUBLIC__/js/jquery.js"></script>
<script src="__PUBLIC__/js/pintuer.js"></script>
<script type="text/javascript" src="__PUBLIC__/laydate/laydate.js"></script>
</head>
<body>
<form method="post" action="" id="listform">

<input name="dayin" type="hidden" value="__URL__/dayinApply">

<div style="float:right;">
<div style="float:left;">开始日：<li class="laydate-icon" id="start" style="width:200px; margin-right:10px;"></li></div>
<div style="float:left;">结束日：<li class="laydate-icon" id="end" style="width:200px;"></li></div>
<a class="button bg-blue margin-left" target="right" id="dayin" style="float:right">批量打印</a>
<a class="button bg-blue margin-left" target="right" id="shenhe" style="float:right">批量审核</a>
</div>
<!-- <a href="__URL__/dayinApply" class="button bg-blue margin-left" target="right" style="float:right">打印</a> -->

  <div class="panel admin-panel">
    <div class="panel-head"><strong class="icon-reorder"> 提现列表</strong> </div>
    <table class="table table-hover text-center">
      <tr>
        <th width="100" style="text-align:left; padding-left:20px;">自增id</th>
		<th width="310">操作</th>
        <th width="10%">申请人</th>
        <th width="10%">身份证号</th>
        <th width="10%">银行卡号</th>
        <th width="10%">银行类型</th>
        <th width="10%">姓名</th>
        <th width="10%">申请金额</th>
        <th width="10%">申请时间</th>
        <th width="310">操作</th>
      </tr>
      <volist name="res" id="vo" key="k">
	      <tr>
		        <td style="text-align:left; padding-left:20px;">
		          	{$k}
		        </td>
				
		        <td>
			        <div class="button-group"> 
			          	<a class="button border-main" href="__URL__/applyVia/id/{$vo.id}"><span class="icon-edit"></span>通过</a> 
			          	<!-- <a class="button border-red" href="__URL__/applyNoVia/id/{$vo.id}"><span class="icon-edit"></span> 不通过</a> --> 
			        </div>
		          </td>				
				
				
		        <td>{$vo.phone}
		        </td>
		        <td>{$vo.idcard}
		        </td>				
		        <td>{$vo.card}
		        </td>
		        <td>{$vo.banktype}
		        </td>
		        <td>{$vo.name}
		        </td>
		        <td width="10%">
		          	<font color="#00CC99">{$vo.money}</font>
		        </td>
		        <td>{$vo.shijian}</td>
		        <td>
			        <div class="button-group"> 
			          	<!-- <a class="button border-main" href="__URL__/applyVia/id/{$vo.id}"><span class="icon-edit"></span>通过</a> --> 
			          	<a class="button border-red" href="__URL__/applyNoVia/id/{$vo.id}"><span class="icon-edit"></span> 不通过</a> 
			        </div>
		          </td>
	        </tr>
	</volist>
         
      <tr>
        <td colspan="8"><div class="pagelist"> {$page} </div></td>
      </tr>
    </table>
  </div>
</form>


<script>
$(function(){
	$("#dayin").click(function(){
		var startTime = $("#start").html();
		var endTime = $("#end").html();
		if(startTime == "" || endTime == ""){
			alert('起止时间不能为空');
			return false;
		}
		var url = $("input[name='dayin']").val();
		window.location.href = url;
		return;
		
	})
	
	$("#shenhe").click(function(){
		var startTime = $("#start").html();
		var endTime = $("#end").html();
		if(startTime == "" || endTime == ""){
			alert('起止时间不能为空');
			return false;
		}

		$.ajax({
			type:"POST",
			url: "__URL__/shenheApply",
			dataType:"JSON",
			data:{startTime:startTime,endTime:endTime},
			success:function(result){
				if(result == 1){
					alert('批量审核成功');
					window.location.reload();
					return;
				}else{
					alert('请输入正确的起止日期');
					return false;
				}
			}
		});
		
	})	
	
	
})
</script>
<script>
var start = {
  elem: '#start',
  format: 'YYYY-MM-DD hh:mm:ss',
  min: '2016-06-16 23:59:59', //设定最小日期为当前日期
  max: '2099-06-16 23:59:59', //最大日期
  istime: true,
  istoday: false,
  choose: function(datas){
     end.min = datas; //开始日选好后，重置结束日的最小日期
     end.start = datas //将结束日的初始值设定为开始日
	 var newDayin = $("input[name='dayin']").val()+"/startTime/"+datas;
	 $("input[name='dayin']").val(newDayin);
	 var newShenhe = $("input[name='shenhe']").val()+"/startTime/"+datas;
	  $("input[name='shenhe']").val(newShenhe);
  }
};
var end = {
  elem: '#end',
  format: 'YYYY-MM-DD hh:mm:ss',
  min: '2016-06-16 23:59:59',
  max: '2099-06-16 23:59:59',
  istime: true,
  istoday: false,
  choose: function(datas){
    start.max = datas; //结束日选好后，重置开始日的最大日期
	 var newDayin1 = $("input[name='dayin']").val()+"/endTime/"+datas;
	 $("input[name='dayin']").val(newDayin1);
	 var newShenhe1 = $("input[name='shenhe']").val()+"/endTime/"+datas;
	  $("input[name='shenhe']").val(newShenhe1);	 
  }
};
laydate(start);
laydate(end);
</script>









<script type="text/javascript">

//搜索
function changesearch(){	
		
}

//单个删除
function del(id,mid,iscid){
	if(confirm("您确定要删除吗?")){
		
	}
}

//全选
$("#checkall").click(function(){ 
  $("input[name='id[]']").each(function(){
	  if (this.checked) {
		  this.checked = false;
	  }
	  else {
		  this.checked = true;
	  }
  });
})

//批量删除
function DelSelect(){
	var Checkbox=false;
	 $("input[name='id[]']").each(function(){
	  if (this.checked==true) {		
		Checkbox=true;	
	  }
	});
	if (Checkbox){
		var t=confirm("您确认要删除选中的内容吗？");
		if (t==false) return false;		
		$("#listform").submit();		
	}
	else{
		alert("请选择您要删除的内容!");
		return false;
	}
}

//批量排序
function sorts(){
	var Checkbox=false;
	 $("input[name='id[]']").each(function(){
	  if (this.checked==true) {		
		Checkbox=true;	
	  }
	});
	if (Checkbox){	
		
		$("#listform").submit();		
	}
	else{
		alert("请选择要操作的内容!");
		return false;
	}
}


//批量首页显示
function changeishome(o){
	var Checkbox=false;
	 $("input[name='id[]']").each(function(){
	  if (this.checked==true) {		
		Checkbox=true;	
	  }
	});
	if (Checkbox){
		
		$("#listform").submit();	
	}
	else{
		alert("请选择要操作的内容!");		
	
		return false;
	}
}

//批量推荐
function changeisvouch(o){
	var Checkbox=false;
	 $("input[name='id[]']").each(function(){
	  if (this.checked==true) {		
		Checkbox=true;	
	  }
	});
	if (Checkbox){
		
		
		$("#listform").submit();	
	}
	else{
		alert("请选择要操作的内容!");	
		
		return false;
	}
}

//批量置顶
function changeistop(o){
	var Checkbox=false;
	 $("input[name='id[]']").each(function(){
	  if (this.checked==true) {		
		Checkbox=true;	
	  }
	});
	if (Checkbox){		
		
		$("#listform").submit();	
	}
	else{
		alert("请选择要操作的内容!");		
	
		return false;
	}
}


//批量移动
function changecate(o){
	var Checkbox=false;
	 $("input[name='id[]']").each(function(){
	  if (this.checked==true) {		
		Checkbox=true;	
	  }
	});
	if (Checkbox){		
		
		$("#listform").submit();		
	}
	else{
		alert("请选择要操作的内容!");
		
		return false;
	}
}

//批量复制
function changecopy(o){
	var Checkbox=false;
	 $("input[name='id[]']").each(function(){
	  if (this.checked==true) {		
		Checkbox=true;	
	  }
	});
	if (Checkbox){	
		var i = 0;
	    $("input[name='id[]']").each(function(){
	  		if (this.checked==true) {
				i++;
			}		
	    });
		if(i>1){ 
	    	alert("只能选择一条信息!");
			$(o).find("option:first").prop("selected","selected");
		}else{
		
			$("#listform").submit();		
		}	
	}
	else{
		alert("请选择要复制的内容!");
		$(o).find("option:first").prop("selected","selected");
		return false;
	}
}

</script>
</body>
</html>